package com.example.orderassembly.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.entity.GoodOrder;
import com.woniuxy.form.GetAfterSaleByPlatform;
import com.woniuxy.form.GetGoodOrderForm;
import com.woniuxy.form.GetOrder;
import com.woniuxy.form.InsertGoodOrder;

/**
 * <p>
 * 商品订单表 服务类
 * </p>
 *
 * @author yang
 * @since 2021-09-21
 */
public interface IGoodOrderService extends IService<GoodOrder> {

    IPage getGoodOrderByUserId(Integer userId, Integer indexPage, Integer pageSize);

    IPage getGoodOrderByStore(Integer storeId, GetAfterSaleByPlatform getAfterSaleByPlatform);

    IPage getGoodOrderByPlatform(GetAfterSaleByPlatform getAfterSaleByPlatform);

    IPage getGoodOrder(GetGoodOrderForm form);

    Boolean updateGoodOrderStatusById(Integer goodOrderId, Integer status);

    Integer insertGoodOrder(InsertGoodOrder insertGoodOrder);

    Boolean updateGoodOrderStatus(Integer goodOrderId);

    Boolean updateGoodOrderPaied(Integer goodOrderId);

    Boolean updateGoodOrderReceiving(Integer goodOrderId);

    Boolean updateGoodOrderEvaluated(Integer goodOrderId);

    GoodOrder getGoodOrderById(Integer id);

    Boolean updateGoodOrderPayType(Integer orderId, Integer payType);
}
